
package com.zima.mall.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
@TableName(value = "action_users")
@Data
public class MallUser {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer userId;

    private String account;

    private String password;

    private String name;

    private String email;

    private String phone;

    private String question;

    private String asw;

    private int role;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private int age;

    private int sex;

    @TableField(value = "del")
    private int isDeleted;

}